const mongoose=require('mongoose');
const student=require('../dbs/mondules/student');
const db=require=require('../dbs/db');
let students=[
    {
        name:'黄雷明',
        gennder:'男',
        sex:'1',
        birthDate:'2004-3-15',
    },
    {
        name:'李四',
        gennder:'女',
        sex:'0',
        birthDate:'2004-1-1'
    },{
        name:'李佳航',
        gennder:'男',
        sex:'1',
        birthDate:'2004-8-15'
    },{
        name:'李天宇',
        gennder:'男',
        sex:'1',
        birthDate:'2004-3-15'
    }
]

db(()=>{
        student.insertMany(students).then(r=>{console.log(r);})
});

